<template>
  <div>
    <div class="left-box">
      <div class="box-main box1">
        <div class="title">实时统计</div>
        <div class="left-top-content">
          <ul>
            <img
              src="~assets/img/sy/dz-mark.png"
              alt="党政建设"
              class="dz-mark"
            />
            <li>
              <div class="dz-num">23</div>
              <span>党员数量</span>
            </li>
            <li>
              <div class="dz-num">134</div>
              <span>团员数量</span>
            </li>
            <li>
              <div class="dz-num">43</div>
              <span>预备党员</span>
            </li>
            <li class="orthogon-right">
              <div class="dz-num">5</div>
              <span>入党申请人</span>
            </li>
          </ul>
        </div>
      </div>
      <div class="box-main box2">
        <div class="title">党员统计</div>
        <div class="box">
          <echart :options="option1" />
        </div>
      </div>
    </div>
    <div class="right-box">
      <div class="box-main box3">
        <div class="title">党建要闻</div>
        <div class="right-content">
          <div class="xwMain">
            <p v-for="item in news">{{ item }}</p>
          </div>
        </div>
      </div>
      <div class="box-main box4">
        <div class="title">党员风采</div>
        <div class="peoples">
          <div class="peoLi">
            <div>序号</div>
            <div>姓名</div>
            <div>联系方式</div>
          </div>
          <div class="peoMain">
            <div class="peoLi" v-for="(item, index) in peoples">
              <div>{{ index + 1 }}</div>
              <div>{{ item.name }}</div>
              <div>{{ item.tel }}</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Echart from "components/common/echart/Echart.vue";
import { echart15 } from "./option";
export default {
  components: { Echart },
  data() {
    return {
      option1: null,
      peoples: [
        {
          name: "王自健",
          tel: "1850316003",
        },
        {
          name: "王自健",
          tel: "1850316003",
        },
        {
          name: "王自健",
          tel: "1850316003",
        },
        {
          name: "王自健",
          tel: "1850316003",
        },
      ],
      news: [
        "标题标题标题标题标题标题标题",
        "标题标题标题标题标题标题标题",
        "标题标题标题标题标题标题标题",
        "标题标题标题标题标题标题标题",
        "标题标题标题标题标题标题标题",
      ],
    };
  },
  mounted() {
    this.option1 = echart15();
  },
  created() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.left-box {
  .box1 {
    .left-top-content {
      width: 100%;
      height: 15.625rem;
      display: flex;
      justify-content: center;
      align-items: center;
      ul {
        position: relative;
        width: 80%;
        height: 13.75rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: center;
        .dz-mark {
          width: 3.75rem;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
        li {
          width: 48%;
          height: 3.75rem;
          color: #00f0ff;
          font-size: 0.875rem;
          background: rgba(0, 54, 255, 0.2);
          border: 0.0625rem solid #022ece;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          margin: 0.625rem 0;
        }
        .dz-num {
          font-size: 1.625rem;
          font-family: shuzi;
        }
      }
    }
  }
  .box2 {
    .box {
      width: 100%;
      height: 15.625rem;
    }
  }
}
.right-box {
  .box3 {
    .right-content {
      width: 100%;
      height: 18.75rem;
      padding: 1.25rem;
      box-sizing: border-box;
      .xwMain {
        overflow: auto;
        height: 100%;
        p {
          margin: 0;
          color: #fff;
          line-height: 1.875rem;
          padding: 0 1.25rem;
          text-align: center;
          background: url(~assets/img/sy/dzbg.png) no-repeat;
          background-size: 100% 100%;
          margin-bottom: 0.3125rem;
        }
      }
    }
  }
  .box4 {
    .peoples {
      color: #fff;
      font-size: 0.875rem;
      text-align: center;
      .peoMain {
        height: 18.75rem;
        overflow: auto;
      }
      .peoLi {
        line-height: 1.5625rem;
        display: flex;
        div:nth-child(1) {
          flex: 1;
        }
        div:nth-child(2) {
          flex: 1;
        }
        div:nth-child(3) {
          flex: 2;
        }
      }
    }
  }
}
</style>
